package com.zhongxiangspace.enums;

/**
 * 装修
 */
public enum DecorationEnum {
    DECORATION_JINGZHUANG("d1", "精装"),
    DECORATION_JIANZHUANG("d2", "简装"),
    DECORATION_QINGSHUI("d3", "清水");

    private String name;
    private  String value;


    public static DecorationEnum getEnumObject(String name) {
        for (DecorationEnum r : DecorationEnum.values()) {
            if (r.getName().equals(name)) {
                return r;
            }
        }
        return DecorationEnum.DECORATION_JIANZHUANG;
    }


    DecorationEnum(String name, String value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
